<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@include file="common/header.jsp" %>

	
	<div class="row">
              <div class="col-md-12 col-sm-12 col-xs-12">
                <div class="x_panel">
                  <div class="x_title">
                    <h2>修改APP版本信心 <small>${devUser.devname }</small></h2>
                    <div class="clearfix"></div>
                  </div>
                  <div class="x_content">
                    <p class="text-muted font-13 m-b-30">
                      历史版本列表
                    </p>
                    <table id="datatable" class="table table-striped table-bordered">
                      <thead>
                        <tr>
                          <th>软件名称</th>
                          <th>版本号</th>
                          <th>版本大小</th>
                          <th>发布状态</th>
                          <th>APK文件下载</th>
                          <th>最新更新时间</th>
                        </tr>
                      </thead>


                      <tbody>
                       <c:forEach items="${appVersionList }" var="appVersion">
                        <tr>
                          <td>${appVersion.softwarename }</td> 
                          <td>${appVersion.versionno }</td> 
                          <td>${appVersion.versionsize }</td> 
                          <td>${appVersion.publishname }</td> 
                          <td>${appVersion.downloadlink }</td> 
                          <td>
                          	<fmt:formatDate value="${appVersion.modifydate }" pattern="yyyy-MM-dd HH:mm:ss"/>
                          
                          </td> 
                        </tr>
                       </c:forEach>
                        
                  
                      </tbody>
                    </table>
                  </div>
                </div>
              </div>
              
              
       <div class="col-md-12 col-sm-12 col-xs-12">
                <div class="x_panel">
                  <div class="x_title">
                    <h2>修改版本信息</h2>
                    <div class="clearfix"></div>
                  </div>
                  <div class="x_content">
                    <br />
                    <span style="color:red">${saveInfo }</span>
                    <form action="${pageContext.request.contextPath }/devApp/appInfoUpdateVersion" method="post" enctype="multipart/form-data"
                    id="demo-form2" data-parsley-validate class="form-horizontal form-label-left">
                    	<input type="hidden" name="id" value="${appVersions.id}" />
                    	<input type="hidden" name="appid" value="${appVersions.appid}" />
                      <div class="form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="versionno">版本号 <span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                          <input type="text" name="versionno" id="versionno" value="${appVersions.versionno }" required="required" class="form-control col-md-7 col-xs-12" >
                        </div>
                      </div>
                      <div class="form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="versionsize">版本大小 <span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                          <input type="text" id="versionsize" required="required" value="${appVersions.versionsize}" name="versionsize" class="form-control col-md-7 col-xs-12">
                        </div>
                      </div>
                      
                      <div class="form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="first-name">发布状态 <span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                        	<input type="hidden" name="publishstatus" value="3" />
                          <input type="text" value="预发布" readonly="readonly" class="form-control col-md-7 col-xs-12">
                        </div>
                      </div>
                      
                      <div class="form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="versioninfo">版本简介 <span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                          <input type="text" id="versioninfo" name="versioninfo" value="${appVersions.versioninfo }" required="required" class="form-control col-md-7 col-xs-12">
                        </div>
                      </div>
                      
                      <div class="form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="downloadlink">APK文件 <span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">

                         <p><span>${appVersions.apkfilename }</span>&nbsp;&nbsp;&nbsp;&nbsp;<a href="${appVersions.downloadlink}">下载</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="#">删除</a></p>
                        </div>
                      </div>
                      <div class="ln_solid"></div>
                      <div class="form-group">
                        <div class="col-md-6 col-sm-6 col-xs-12 col-md-offset-3">
                          <button type="submit" class="btn btn-primary">修改APP版本信息</button>
                        </div>
                      </div>
								
                    </form>
                  </div>
                </div>
              </div>       
              
              
     </div>
	
	




<%@include file="common/footer.jsp" %>
